/* header */
.header {
  height: 290px;
  width: 100%;

  .header_nav {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;

    .title {
      font-family: "YWtail";
      color: #fff;
      font-size: 36px;
      display: none;
      transition: all .1s;
      cursor: pointer;

      &:hover {
        transform: scale(1.2);
      }
    }


    .nav_list {
      height: 80%;
      
      a {
        display: inline-block;
        height: 100%;
        color: #fff;
        width: 72px;
        font-size: 14.5px;
        line-height: 63px;
        text-align: center;
        cursor: pointer;
        transition: all .1s;
        text-decoration: none;

        &:hover {
          background-color: rgba(0, 0, 0, .5);
          font-size: 16px;
        }
      }

      

      span:nth-of-type(3) {
        margin-right: 0;
      }
    }

    @media screen and (max-width:450px){
      .nav_list {
        width: 100%;
        text-align: center;
        span {
          display: inline-block;

        }
      }
    }
  }

  .hcarousel {
    // height: 450px;

    /* 轮播图内容 */
    .item {
      height: 240px;
      
      .carousel-caption {
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: end;
        align-items: center;

        h1 {
          font-size: 20px;
          font-family: "OSBold";
          margin-bottom: 0;
        }

        p {
          font-size: 12px;
        }

        button {
          width: 90px;
          height: 36px;
          background-color: #71b6d5;
          color: #fff;
          border: none;
          border-radius: 5px;
          margin-top: 30px;
          margin-bottom: 20px;
          font-size: 10px;
        }
      }
    }

    /* 轮播图左右箭头 */
    .carousel-control{
      background: transparent;
      opacity: 1;
      width: 10%;

      .s_right {
        display: block;
        position: absolute;
        top: 50%;
        left: 65%;
        transform: translate(-50%,-50%);
        width: 30px;
        height: 30px;
        border: 2px solid #fff;
        border-radius: 50%;
        line-height: 30px;

      }

      .s_left {
        display: block;
        position: absolute;
        top: 50%;
        left: 35%;
        transform: translate(-50%,-50%);
        width: 30px;
        height: 30px;
        border: 2px solid #fff;
        border-radius: 50%;
        line-height: 30px;
      }
    }

    .left {
      left: 0px;
    }

    .right {
      right: 0px;
    }

    /* 轮播图导航栏 */
    .carousel-indicators {
      bottom: 0px;

      li {
        margin: 0 10px;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-radius: 50%;
        position: relative;
        background-color: transparent;

        span {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%,-50%);
          display: block;
          width: 5px;
          height: 5px;
          background-color: #fff;
          border-radius: 50%;

        }


      }

      .active {
        border-color: #fff;
      }
    }

    @media screen and (min-width:450px) {
      .left {
        left: 0px;
      }
  
      .right {
        right: 0px;
      }

      .item {
        height: 280px;

        .carousel-caption {
          h1 {
            font-size: 20px;
          }

          p {
          font-size: 12px;
          }

          button {
            width: 100px;
            height: 38px;
            margin-top: 50px;
            font-size: 12px;
          }
        }
      }

      .carousel-control {
        .s_left,
        .s_right {
          width: 30px;
          height: 30px;
          line-height: 30px;
        }
      }

      .carousel-indicators {
        li {
          width: 20px;
          height: 20px;
          span {
            width: 5px;
            height: 5px;
          }
        }
      }
    }

    @media screen and (min-width:768px) {
      .left {
        left: -23px;
      }
  
      .right {
        right: -23px;
      }

      .item {
        height: 380px;

        .carousel-caption {
          h1 {
            font-size: 30px;
          }

          p {
          font-size: 16px;
          }

          button {
            width: 140px;
            height: 44px;
            margin-top: 60px;
            font-size: 14px;
          }
        }
      }

      .carousel-control {
        .s_left,
        .s_right {
          width: 40px;
          height: 40px;
          line-height: 40px;
        }
      }
    }


    @media screen and (min-width:992px) {
      .left {
        left: -26px;
      }
  
      .right {
        right: -26px;
      }

      .item {
        height: 450px;
        .carousel-caption {
          h1 {
            font-size: 40px;
          }

          p {
          font-size: 20px;
          }

          button {
            width: 150px;
            height: 50px;
            margin-top: 70px;
            font-size: 18px;
          }
        }
      }

      .carousel-control {
        .s_left,
        .s_right {
          width: 44px;
          height: 44px;
          line-height: 44px;
        }
      }
    }

    @media screen and (min-width:1200px) {
      .left {
        left: -30px;
      }
  
      .right {
        right: -30px;
      }

      .item {
        .carousel-caption {
          h1 {
            font-size: 45px;
          }
          p{
            font-size: 25px;
          }
        }
      }
    }


    @media screen and (min-width:1300px) {
      .left {
        left: -75px;
      }
  
      .right {
        right: -75px;
      }
    }

  }
}

/* 背景 */
.header_bg {
  width: 100%;
  position: absolute;
  z-index: -99;
  height: 290px;

  .bg_img{
    height: 100%;
    .bg {
      position: absolute;
      left: 0;
      top: 0;
      // z-index: -88;
      width: 100%;
      height: 100%;
      background-color: #13052357;
    }
  
    img {
      position: absolute;
      right: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }
  }
}


@media screen and (min-width:450px){
  .header_bg {
    height: 370px;
  }

  .header {
    height: 370px;

    .header_nav {
      height: 80px;
  
      .title {
        font-size: 30px;
        display: block;
      }
  
      .nav_list {
        span {
          font-size: 12px;
        }
  
        span:nth-of-type(3) {
          margin-right: 0;
        }
      }
    }
  }
}


@media screen and (min-width:768px){
  .header_bg {
    height: 480px;
  }

  .header {
    height: 480px;
  }
}

@media screen and (min-width:992px){
  .header_bg {
    height: 560px;
  }

  .header {
    height: 560px;
  }
}

/* 页尾 */
.footer {
  .footer_start {
    height: 350px;
    background-color: #273a43;

    ul {
      display: flex;
      justify-content: space-between;
      padding: 0;
      margin: 0;

      li {
        list-style: none;
        width: 250px;
        color: #fff;
        margin-top: 60px;

        p {
          font-family: "OSLight";
          font-size: 13px;
          color: #ccc;
          line-height: 20px;
        }

        h1 {
          font-family: "OSLight";
          margin-bottom: 30px;
        }
      }

      li:nth-of-type(1) {
        padding-right: 40px;

        h1{
          font-family: "YWtail";
        }
      }

      li:nth-of-type(2) {
        padding-right: 40px;

        div {
          font-family: "OSLight";
          margin-bottom: 10px;
          font-size: 13px;
          line-height: 18px;

          span {
            color: #71b6d5;
            margin-right: 16px;
            font-size: 16px;
          }
        }
      }

      li:nth-of-type(3) {

        .lastest {
          display: flex;
          margin-bottom: 20px;
          .icon {
            padding-right: 16px;
            &::after {
              content: "\ee29";
              font-family: "icomoon";
              color: #71b6d5;
              font-size: 16px;
            }
          }

          .info {
            p {
              margin-bottom: 0;
            }

            p:nth-of-type(2) {
              color: #71b6d5;
            }
          }
        }
        
      }

      li:nth-of-type(4) {
        margin-right: 0;

        div {
          width: 100%;
          background-color: #172227;
          height: 36px;
          display: flex;
          justify-content: space-between;
          border-radius: 5px;
          overflow: hidden;

          input {
            width: 135px;
            border: none;
            outline: none;
            background: none;
            color: #ccc;
            padding-left: 10px;
          }

          button {
            width: 44px;
            background-color: #71b6d5;
            border: none;
          }
        }
      }
    }
  }

  .footer_end {
    height: 90px;
    background-color: #172227;

    .container {
      height: 100%;
      display: flex;
      align-items: center;

      .info {
        flex: 5;
        color: #999;
      }

      .icon {
        flex:1;
        text-align: right;

        a {
          display: inline-block;
          width: 30px;
          height: 30px;
          border-radius: 50%;
          color: #fff;
          text-decoration: none;
          text-align: center;
          line-height: 30px;
          margin-left: 10px;
        }

        a:nth-of-type(1) {
          background-color: #71b6d5;
          
          &::before {
            content: "\ee29";
            font-family: "icomoon";
          }
        }

        a:nth-of-type(2) {
          background-color: #2c3b42;

          &::before {
            font-family: "icomoon";
            content: "\ea90";
          }
        }

        a:nth-of-type(3) {
          background-color: #2c3b42;

          &::before {
            content: "\eaca";
            font-family: "icomoon";
          }
        }
      }
    }
  }
}

@media screen and (max-width:1200px) {
  .footer {
    .footer_start {
      ul {
        li {
          width: 220px;
        }

        li:nth-of-type(1) {
          padding-right: 20px;
        }
      }
    }
  }
}

@media screen and (max-width:992px) {
  .footer {
    .footer_start {
      height: 300px;
      ul {
        li {
          width: 180px;
          margin-top: 30px;

          p {
            font-size: 10px;
            line-height: 16px;
          }
  
          h1 {
            margin-bottom: 26px;
            font-size: 24px;
          }
        }

        li:nth-of-type(2) {
          div {
            margin-bottom: 10px;
            font-size: 10px;
            line-height: 16px;
  
            span {
              color: #71b6d5;
              margin-right: 5px;
              font-size: 12px;
            }
          }
        }

        li:nth-of-type(3) {
          .lastest {
            .icon {
              padding-right: 5px;

              &::after {
                
                font-size: 12px;
              }
            }

            .info {
  
              p:nth-of-type(2) {
                color: #71b6d5;
                font-size: 12px;
              }
            }
          }
        }

        li:nth-of-type(4) {
          padding-left: 10px;
          div {
            margin-top: 20px;
            width: 100%;
            height: 30px;
  
            input {
              width: 120px;
              font-size: 12px;
            }
  
            button {
              height: 100%;
              width: 40px;
              background-color: #71b6d5;
              border: none;
              font-size: 12px;
            }
          }
        }
      }
    }

    .footer_end {
      .container {
        .info {
          font-size: 12px;
        }
        .icon {
          a {
            width: 25px;
            height: 25px;
            line-height: 25px;
            margin-left: 5px;

            &::before {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width:768px) {
  .footer {
    .footer_start {
      height: 480px;
      ul {
        flex-wrap: wrap;
        justify-content: space-around;
        li {
          width: 200px;
          margin-top: 10px;
          p {
            font-size: 12px;
          }
  
          h1 {
            margin-top: 10px;
            margin-bottom: 20px;
            font-size: 20px;
          }
        }
      }
    }

    .footer_end {
      .container {
        .info {
          flex: 3;
          font-size: 12px;
        }
        .icon {
          flex: 1;
          a {
            width: 25px;
            height: 25px;
            line-height: 25px;
            margin-left: 5px;

            &::before {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width:450px){
  .footer {
    .footer_start {
      height: 400px;
      ul {
        flex-wrap: wrap;
        justify-content: space-around;
        li {
          width: 145px;
          margin-top: 10px;
          p {
            font-size: 12px;
          }
  
          h1 {
            margin-top: 10px;
            margin-bottom: 20px;
            font-size: 20px;
          }
        }

        li:nth-of-type(1) {
          padding-right: 10px;
          p {
            height: 108px;
            overflow: scroll;
            margin-bottom: 0;
          }
          
        }

        li:nth-of-type(2) {
          padding-right: 0;
          div {
            margin-bottom: 5px;
          }
          p {
            height: 40px;
            overflow: scroll;
          }
        }

        li:nth-of-type(3) {
          .lastest {
            margin-bottom: 10px;
            .icon {
              padding-right: 5px;
            }
  
            .info {
              p:nth-of-type(1) {
                overflow: scroll;
                height: 50px;
              }
            }
          }
        }

        li:nth-of-type(4) {
          div {
            input {
              width: 100px;
            }
          }
        }
      }
    }

    .footer_end {
      .container {
        display: block;
        .info {
          font-size: 12px;
          margin: 20px 0;
        }
        .icon {
          a {
            width: 25px;
            height: 25px;
            line-height: 25px;
            margin-left: 5px;

            &::before {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width:320px){
  .footer {
    .footer_start {
      height: 450px;
      ul {
        flex-wrap: wrap;
        justify-content: space-around;
        li {
          width: 50%;
          margin-top: 10px;
          p {
            font-size: 12px;
          }
  
          h1 {
            margin-top: 10px;
            margin-bottom: 20px;
            font-size: 20px;
          }
        }

        li:nth-of-type(1) {
          padding-right: 10px;
          p {
            height: 108px;
            overflow: scroll;
            margin-bottom: 0;
          }
          
        }

        li:nth-of-type(2) {
          padding-right: 0;
          div {
            margin-bottom: 5px;
          }
          p {
            height: 40px;
            overflow: scroll;
          }
        }

        li:nth-of-type(3) {
          .lastest {
            margin-bottom: 10px;
            .icon {
              padding-right: 5px;
            }
  
            .info {
              p:nth-of-type(1) {
                overflow: scroll;
                height: 50px;
              }
            }
          }
        }

        li:nth-of-type(4) {
          div {
            input {
              width: 100px;
            }
          }
        }
      }
    }

    .footer_end {
      .container {
        display: block;
        .info {
          font-size: 12px;
          margin: 20px 0;
        }
        .icon {
          a {
            width: 25px;
            height: 25px;
            line-height: 25px;
            margin-left: 5px;

            &::before {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

/* 公共标题 */
.common_title {
  position: relative;
  height: 90px;
  border-top: 1px solid #ccc;

  .icon {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 80px;
    color: #71b6d5;
  }

  p {
    font-family: "OSLight";
    width: 100%;
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
    span {
      font-family: "OSBold";
    }
  }
}


@media screen and (max-width:1200px) {
  .common_title {
    p {
      font-size: 23px;
    }
  }
}

@media screen and (max-width:992px) {
  .common_title {
    p {
      font-size: 21px;
    }
  }
}

/* 回到顶部 */
#back {
  width: 100px;
  height: 100px;
  position: fixed;
  bottom: 30px;
  display: none;

  img {
    width: 100%;
    height: 100%;
  }
}

.back {
  animation: rubberBand 1s;
}

@keyframes rubberBand{
  0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}
  30%{-webkit-transform:scaleX(1.25) scaleY(0.75);-ms-transform:scaleX(1.25) scaleY(0.75);transform:scaleX(1.25) scaleY(0.75)}
  40%{-webkit-transform:scaleX(0.75) scaleY(1.25);-ms-transform:scaleX(0.75) scaleY(1.25);transform:scaleX(0.75) scaleY(1.25)}
  60%{-webkit-transform:scaleX(1.15) scaleY(0.85);-ms-transform:scaleX(1.15) scaleY(0.85);transform:scaleX(1.15) scaleY(0.85)}
  100%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}
}

@media screen and (max-width:768px) {
  #back {
    width: 50px;
    height: 50px;
  }
}